package com.example.jetpackcomposebasic.todo

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Call
import androidx.compose.material.icons.filled.Delete
import androidx.compose.material.icons.filled.Done
import androidx.compose.material.icons.filled.Email
import androidx.compose.material.icons.filled.Lock
import androidx.compose.material.icons.filled.Person
import androidx.compose.ui.graphics.vector.ImageVector
import kotlin.random.Random

data class ToDoItem(val title: String, val icon: ImageVector,val id:Int = Random.nextInt())

object TestItems {

    fun examples(): List<ToDoItem> {
        return listOf(
            ToDoItem("邮件", Icons.Default.Email),
            ToDoItem("电话", Icons.Default.Call),
            ToDoItem("锁", Icons.Default.Lock),
            ToDoItem("用户", Icons.Default.Person),
            ToDoItem("删除", Icons.Default.Delete),
            ToDoItem("确认", Icons.Default.Done)
        )
    }

    fun randomItem():ToDoItem{
        return examples().random()
    }
}
